package org.go.scheduler.database;

import org.go.trigger.TriggerKey;
import org.go.work.WorkKey;

/**
 * <p>
 * Conveys the state of a fired-trigger record.
 * </p>
 * 
 * @author James House
 */
public class FiredTriggerRecord implements java.io.Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5340865270727911194L;

	private String fireInstanceId;

	private String fireInstanceState;

	private long fireTimestamp;

	private boolean jobDisallowsConcurrentExecution;

	private WorkKey jobKey;

	private boolean jobRequestsRecovery;

	private int priority;

	private String schedulerInstanceId;

	private TriggerKey triggerKey;

	public String getFireInstanceId() {
		return fireInstanceId;
	}

	public String getFireInstanceState() {
		return fireInstanceState;
	}

	public long getFireTimestamp() {
		return fireTimestamp;
	}

	public WorkKey getJobKey() {
		return jobKey;
	}

	public int getPriority() {
		return priority;
	}

	public String getSchedulerInstanceId() {
		return schedulerInstanceId;
	}

	public TriggerKey getTriggerKey() {
		return triggerKey;
	}

	public boolean isJobDisallowsConcurrentExecution() {
		return jobDisallowsConcurrentExecution;
	}

	public boolean isJobRequestsRecovery() {
		return jobRequestsRecovery;
	}

	public void setFireInstanceId(String string) {
		fireInstanceId = string;
	}

	public void setFireInstanceState(String string) {
		fireInstanceState = string;
	}

	public void setFireTimestamp(long l) {
		fireTimestamp = l;
	}

	public void setJobDisallowsConcurrentExecution(boolean b) {
		jobDisallowsConcurrentExecution = b;
	}

	public void setJobKey(WorkKey key) {
		jobKey = key;
	}

	public void setJobRequestsRecovery(boolean b) {
		jobRequestsRecovery = b;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	public void setSchedulerInstanceId(String string) {
		schedulerInstanceId = string;
	}

	public void setTriggerKey(TriggerKey key) {
		triggerKey = key;
	}

}

// EOF
